URL-Rewrite Problem
am 16.10.2009 14:41:07 von anuchettan10
--0-1613963075-1255696867=:6289
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I have a problem with rewriting certain urls which contains special charact=
ers.Please have a look at the following urls
RewriteRule ^/Football/Quarter-Reports%C2%A0 =A0 /Football/Quarter-Rep=
orts=A0 [R=3D301,L]
The problem is the server interprets it differently as the special characte=
rs change the url.
If I changer the rule to something like RewriteRule ^/Football/Trend-Report=
s(.*) or [a-zA-Z0-9-]*
it will not redirect properly.
Some another examples are given below.
1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-game%20target= =A0 /Tenn=
is/Play/xyx-xyz-s-Winning-game =A0 /Tennis/Play/xyx-xyz-s-Winning-game [R=
=3D301,L]
2)=A0 RewriteRule ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK=
/ST%C3%86RK /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-=
Play/STAERK/STAERK
Does anybody has any experience with this? Please suggest some solutions.
=0A
--0-1613963075-1255696867=:6289
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
|
top" style=3D"font: inherit;">I have a problem with rewriting certain urls =
which contains special characters.Please have a look at the following urls<=
br>RewriteRule ^/Football/Quarter-Reports%C2%A0 /Football=
/Quarter-Reports [R=3D301,L]
The problem is the server interprets =
it differently as the special characters change the url.
If I changer th=
e rule to something like RewriteRule ^/Football/Trend-Reports(.*) or [a-zA-=
Z0-9-]*
it will not redirect properly.
Some another examples are give=
n below.
1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-game%20target=3D=
/Tennis/Play/xyx-xyz-s-Winning-game /Tennis/Play/xyx-xy=
z-s-Winning-game [R=3D301,L]
2) RewriteRule ^/Football/xyz-xyz-to-=
Play/Fall-2008-Ready-to-Play/STAERK/ST%C3%86RK  =
; /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/STA ERK
=
Does
anybody has any experience with this? Please suggest some solutions.
r>
--0-1613963075-1255696867=:6289--
Re: URL-Rewrite Problem
am 16.10.2009 15:00:13 von Igor Cicimov
--000e0cd58ef80ce80b04760cfa7c
Content-Type: text/plain; charset=ISO-8859-1
Have you tried the NE flag in the rewrite rule?
On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V wrote:
> I have a problem with rewriting certain urls which contains special
> characters.Please have a look at the following urls
> RewriteRule ^/Football/Quarter-Reports%C2%A0 /Football/Quarter-Reports
> [R=301,L]
> The problem is the server interprets it differently as the special
> characters change the url.
> If I changer the rule to something like RewriteRule
> ^/Football/Trend-Reports(.*) or [a-zA-Z0-9-]*
> it will not redirect properly.
> Some another examples are given below.
> 1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-game%20target=
> /Tennis/Play/xyx-xyz-s-Winning-game /Tennis/Play/xyx-xyz-s-Winning-game
> [R=301,L]
> 2) RewriteRule
> ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/ST %C3%86RK
> /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/STA ERK
>
> Does anybody has any experience with this? Please suggest some solutions.
>
>
>
>
--000e0cd58ef80ce80b04760cfa7c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Have you tried the NE flag in the rewrite rule?
quote">On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V <
ref=3D"mailto:anuchettan10@yahoo.com">anuchettan10@yahoo.com>=
wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
0" cellpadding=3D"0" cellspacing=3D"0"> |
inherit; font-style: inherit; font-variant: inherit; font-weight: inherit;=
font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-=
stretch: inherit;" valign=3D"top">
I have a problem with rewriting certain urls which contains special charact=
ers.Please have a look at the following urls
RewriteRule ^/Football/Quar=
ter-Reports%C2%A0 =A0 /Football/Quarter-Reports=A0 [R=3D301,L]
The =
problem is the server interprets it differently as the special characters c=
hange the url.
If I changer the rule to something like RewriteRule ^/Football/Trend-Report=
s(.*) or [a-zA-Z0-9-]*
it will not redirect properly.
Some another ex=
amples are given below.
1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-g=
ame%20target= =A0 /Tennis/Play/xyx-xyz-s-Winning-game =A0 /Tennis/Play/=
xyx-xyz-s-Winning-game [R=3D301,L]
2)=A0 RewriteRule ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK=
/ST%C3%86RK /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-=
Play/STAERK/STAERK
Does
anybody has any experience with this? Please suggest some solutions.
r>
--000e0cd58ef80ce80b04760cfa7c--
Re: URL-Rewrite Problem
am 16.10.2009 15:06:09 von anuchettan10
--0-398699281-1255698369=:30551
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks for the reply,
Yes.I tried.That too is not working.I find it a strange problem.
--- On Fri, 10/16/09, Igor Cicimov wrote:
From: Igor Cicimov
Subject: Re: [users@httpd] URL-Rewrite Problem
To: users@httpd.apache.org
Date: Friday, October 16, 2009, 6:30 PM
Have you tried the NE flag in the rewrite rule?
On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V wrote:
I have a problem with rewriting certain urls which contains special c=
haracters.Please have a look at the following urls
RewriteRule ^/Football/Quarter-Reports%C2%A0 =A0 /Football/Quarter-Rep=
orts=A0 [R=3D301,L]
The problem is the server interprets it differently as the special characte=
rs change the url.
=0AIf I changer the rule to something like RewriteRule ^/Football/Trend-Rep=
orts(.*) or [a-zA-Z0-9-]*
it will not redirect properly.
Some another examples are given below.
1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-game%20target= =A0 /Tenn=
is/Play/xyx-xyz-s-Winning-game =A0 /Tennis/Play/xyx-xyz-s-Winning-game [R=
=3D301,L]
=0A2)=A0 RewriteRule ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STA=
ERK/ST%C3%86RK /Football/xyz-xyz-to-Play/Fall-2008-Ready-=
to-Play/STAERK/STAERK
Does=0A anybody has any experience with this? Please suggest some solutions=
..
=20
--0-398699281-1255698369=:30551
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
|
top" style=3D"font: inherit;">Thanks for the reply,
Yes.I tried.That too=
is not working.I find it a strange problem.
--- On Fri, =
10/16/09, Igor Cicimov <icicimov@gmail.com> wrote:
ckquote style=3D"border-left: 2px solid rgb(16, 16, 255); margin-left: 5px;=
padding-left: 5px;">
From: Igor Cicimov <icicimov@gmail.com>
S=
ubject: Re: [users@httpd] URL-Rewrite Problem
To: users@httpd.apache.org=
Date: Friday, October 16, 2009, 6:30 PM
">Have you tried the NE flag in the rewrite rule?
l_quote">On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V <
rel=3D"nofollow" ymailto=3D"mailto:anuchettan10@yahoo.com" target=3D"_blan=
k" href=3D"/mc/compose?to=3Danuchettan10@yahoo.com">anuchettan1 0@yahoo.com<=
/a>> wrote:
=0A
er-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-l=
eft: 1ex;"><=
tr> |
herit; font-weight: inherit; font-size: inherit; line-height: inherit; font=
-size-adjust: inherit; font-stretch: inherit;" valign=3D"top">=0AI have a p=
roblem with rewriting certain urls which contains special characters.Please=
have a look at the following urls
RewriteRule ^/Football/Quarter-Report=
s%C2%A0 /Football/Quarter-Reports [R=3D301,L]
Th=
e problem is the server interprets it differently as the special characters=
change the url.
=0AIf I changer the rule to something like RewriteRule =
^/Football/Trend-Reports(.*) or [a-zA-Z0-9-]*
it will not redirect prope=
rly.
Some another examples are given below.
1) RewriteRule ^/Tennis/P=
lay/xyx-xyz-s-Winning-game%20target=3D /Tennis/Play/xyx-xyz-s-W=
inning-game /Tennis/Play/xyx-xyz-s-Winning-game [R=3D301,L]
=0A2)=
RewriteRule ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAER=
K/ST%C3%86RK /Football/xyz-xyz-to-Play/=
Fall-2008-Ready-to-Play/STAERK/STAERK
Does=0A anybody has any experi=
ence with this? Please suggest some solutions.
>
=0A=
--0-398699281-1255698369=:30551--
Re: URL-Rewrite Problem
am 16.10.2009 19:48:32 von Jonathan Zuckerman
--000e0cd514984eff2904761102f2
Content-Type: text/plain; charset=UTF-8
On Fri, Oct 16, 2009 at 6:06 AM, Anoop.V wrote:
> Thanks for the reply,
> Yes.I tried.That too is not working.I find it a strange problem.
>
>
>
> --- On *Fri, 10/16/09, Igor Cicimov * wrote:
>
>
> From: Igor Cicimov
> Subject: Re: [users@httpd] URL-Rewrite Problem
> To: users@httpd.apache.org
> Date: Friday, October 16, 2009, 6:30 PM
>
>
> Have you tried the NE flag in the rewrite rule?
>
> On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V
> > wrote:
>
>> I have a problem with rewriting certain urls which contains special
>> characters.Please have a look at the following urls
>> RewriteRule ^/Football/Quarter-Reports%C2%A0 /Football/Quarter-Reports
>> [R=301,L]
>> The problem is the server interprets it differently as the special
>> characters change the url.
>> If I changer the rule to something like RewriteRule
>> ^/Football/Trend-Reports(.*) or [a-zA-Z0-9-]*
>> it will not redirect properly.
>> Some another examples are given below.
>> 1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-game%20target=
>> /Tennis/Play/xyx-xyz-s-Winning-game /Tennis/Play/xyx-xyz-s-Winning-game
>> [R=301,L]
>> 2) RewriteRule
>> ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/ST %C3%86RK
>> /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/STA ERK
>>
>> Does anybody has any experience with this? Please suggest some solutions.
>>
>>
>>
>>
>
>
This is becoming my standard response but I have to ask, why?
There may be a really great explanation but those rewrite/redirect rules
you're suggesting seem bizarre (converting raw-url-encoded to non-encoded?)
and very very specific, how many of them do you plan to write? one for every
URL on your page? Would it not be simpler to modify the application to more
robustly handle the querystring/url parameters?
--000e0cd514984eff2904761102f2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Fri, Oct 16, 2009 at 6:06 AM, Anoop.V
ir=3D"ltr"><
anuchettan10@yahoo=
..com> wrote:
rder-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding=
-left: 1ex;">
|
e=3D"font-family: inherit; font-style: inherit; font-variant: inherit; font=
-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjus=
t: inherit; font-stretch: inherit;" valign=3D"top">
Thanks for the reply,
Yes.I tried.That too is not working.I find it a st=
range problem.
--- On Fri, 10/16/09, Igor Cicimov <=
icicimov@gmail.com<=
/a>> wrote:
5px; padding-left: 5px;">
From: Igor Cicimov <
mov@gmail.com" target=3D"_blank">icicimov@gmail.com>
Subject: Re:=
[users@httpd] URL-Rewrite Problem
To: users@httpd=
..apache.org
Date: Friday, October 16, 2009, 6:30 PM<=
div class=3D"h5">
Have you tried the NE flag in the rewrite rul=
e?
On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V
pan dir=3D"ltr"><
hettan10@yahoo.com" target=3D"_blank">anuchettan10@yahoo.com>=
wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
0" cellpadding=3D"0" cellspacing=3D"0">
|
inherit; font-style: inherit; font-variant: inherit; font-weight: inherit;=
font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-=
stretch: inherit;" valign=3D"top">
I have a problem with rewriting certain urls which contains special charact=
ers.Please have a look at the following urls
RewriteRule ^/Football/Quar=
ter-Reports%C2%A0   /Football/Quarter-Reports [R=3D30=
1,L]
The problem is the server interprets it differently as the special =
characters change the url.
If I changer the rule to something like RewriteRule ^/Football/Trend-Report=
s(.*) or [a-zA-Z0-9-]*
it will not redirect properly.
Some another ex=
amples are given below.
1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-g=
ame%20target= Â=A0 /Tennis/Play/xyx-xyz-s-Winning-game  /Ten=
nis/Play/xyx-xyz-s-Winning-game [R=3D301,L]
2)Â RewriteRule ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STA=
ERK/ST%C3%86RKÂ Â Â Â Â Â /Football/xyz-xyz-to-Pla=
y/Fall-2008-Ready-to-Play/STAERK/STAERK
Does
anybody has any experience with this? Please suggest some solutions.
r>
<=
div>
This is becoming my standard response but I have to ask, why?
<=
br>There may be a really great explanation but those rewrite/redirect rules=
you're suggesting seem bizarre (converting raw-url-encoded to non-enco=
ded?) and very very specific, how many of them do you plan to write? one fo=
r every URL on your page? Would it not be simpler to modify the appli=
cation to more robustly handle the querystring/url parameters?
--000e0cd514984eff2904761102f2--
Re: URL-Rewrite Problem
am 17.10.2009 09:50:50 von Igor Cicimov
--000e0cd75fd878170f04761cc57b
Content-Type: text/plain; charset=ISO-8859-1
I agree with Jonathan but in mean time you can try this
RewriteRule ^/Football/Quarter-Reports\%C2\%A0 /Football/Quarter-Reports
[NE,R=301,L]
On Sat, Oct 17, 2009 at 3:48 AM, Jonathan Zuckerman
wrote:
> On Fri, Oct 16, 2009 at 6:06 AM, Anoop.V wrote:
>
>> Thanks for the reply,
>> Yes.I tried.That too is not working.I find it a strange problem.
>>
>>
>>
>> --- On *Fri, 10/16/09, Igor Cicimov * wrote:
>>
>>
>> From: Igor Cicimov
>> Subject: Re: [users@httpd] URL-Rewrite Problem
>> To: users@httpd.apache.org
>> Date: Friday, October 16, 2009, 6:30 PM
>>
>>
>> Have you tried the NE flag in the rewrite rule?
>>
>> On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V
>> > wrote:
>>
>>> I have a problem with rewriting certain urls which contains special
>>> characters.Please have a look at the following urls
>>> RewriteRule ^/Football/Quarter-Reports%C2%A0
>>> /Football/Quarter-Reports [R=301,L]
>>> The problem is the server interprets it differently as the special
>>> characters change the url.
>>> If I changer the rule to something like RewriteRule
>>> ^/Football/Trend-Reports(.*) or [a-zA-Z0-9-]*
>>> it will not redirect properly.
>>> Some another examples are given below.
>>> 1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-game%20target=
>>> /Tennis/Play/xyx-xyz-s-Winning-game /Tennis/Play/xyx-xyz-s-Winning-game
>>> [R=301,L]
>>> 2) RewriteRule
>>> ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/ST %C3%86RK
>>> /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK/STA ERK
>>>
>>> Does anybody has any experience with this? Please suggest some solutions.
>>>
>>>
>>>
>>>
>>
>>
> This is becoming my standard response but I have to ask, why?
>
> There may be a really great explanation but those rewrite/redirect rules
> you're suggesting seem bizarre (converting raw-url-encoded to non-encoded?)
> and very very specific, how many of them do you plan to write? one for every
> URL on your page? Would it not be simpler to modify the application to more
> robustly handle the querystring/url parameters?
>
--000e0cd75fd878170f04761cc57b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I agree with Jonathan but in mean time you can try this
RewriteRule =
^/Football/Quarter-Reports\%C2\%A0 /Football/Quarter-Reports [NE,R=3D301,L]=
=
|
it; font-weight: inherit; font-size: inherit; line-height: inherit; font-si=
ze-adjust: inherit; font-stretch: inherit;" valign=3D"top">
On Sat, Oc=
t 17, 2009 at 3:48 AM, Jonathan Zuckerman
<
mailto:j.zuckerman@gmail.com">j.zuckerman@gmail.com> wrote:
r>
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
il_quote">
On Fri, Oct 16, 2009 at 6:06 AM=
, Anoop.V
<
arget=3D"_blank">anuchettan10@yahoo.com> wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
|
e=3D"font-family: inherit; font-style: inherit; font-variant: inherit; font=
-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjus=
t: inherit; font-stretch: inherit;" valign=3D"top">
Thanks for the reply,
Yes.I tried.That too is not working.I find it a st=
range problem.
--- On Fri, 10/16/09, Igor Cicimov <=
icicimov@gmail.com<=
/a>> wrote:
5px; padding-left: 5px;">
From: Igor Cicimov <
mov@gmail.com" target=3D"_blank">icicimov@gmail.com>
Subject: Re:=
[users@httpd] URL-Rewrite Problem
To: users@httpd=
..apache.org
Date: Friday, October 16, 2009, 6:30 PM<=
div>
Have you tried the NE flag in the rewrite rule?
On Fri, Oct 16, 2009 at 10:41 PM, Anoop.V
pan dir=3D"ltr"><
hettan10@yahoo.com" target=3D"_blank">anuchettan10@yahoo.com>=
wrote:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
0" cellpadding=3D"0" cellspacing=3D"0">
|
inherit; font-style: inherit; font-variant: inherit; font-weight: inherit;=
font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-=
stretch: inherit;" valign=3D"top">
I have a problem with rewriting certain urls which contains special charact=
ers.Please have a look at the following urls
RewriteRule ^/Football/Quar=
ter-Reports%C2%A0 =A0 /Football/Quarter-Reports=A0 [R=3D301,L]
The =
problem is the server interprets it differently as the special characters c=
hange the url.
If I changer the rule to something like RewriteRule ^/Football/Trend-Report=
s(.*) or [a-zA-Z0-9-]*
it will not redirect properly.
Some another ex=
amples are given below.
1) RewriteRule ^/Tennis/Play/xyx-xyz-s-Winning-g=
ame%20target= =A0 /Tennis/Play/xyx-xyz-s-Winning-game =A0 /Tennis/Play/=
xyx-xyz-s-Winning-game [R=3D301,L]
2)=A0 RewriteRule ^/Football/xyz-xyz-to-Play/Fall-2008-Ready-to-Play/STAERK=
/ST%C3%86RK /Football/xyz-xyz-to-Play/Fall-2008-Ready-to-=
Play/STAERK/STAERK
Does
anybody has any experience with this? Please suggest some solutions.
r>
<=
/div>
This is becoming my standard response but I have to ask=
, why?
There may be a really great explanation but those rewrite/re=
direct rules you're suggesting seem bizarre (converting raw-url-encoded=
to non-encoded?) and very very specific, how many of them do you plan to w=
rite? one for every URL on your page?=A0 Would it not be simpler to modify =
the application to more robustly handle the querystring/url parameters?
v>
--000e0cd75fd878170f04761cc57b--